/**
 * Created by Administrator on 2015/4/15.
 */
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var users=new Schema({
    email:String,//邮箱
    password:String,//密码
    username:String,//用户昵称
    avatar:String,//头像
    sex:String,//性别
    auth:String,//验证码
    condition:Boolean,//账号是否激活
    address:String,//地址
    marry:String,//婚姻状况
    proclammation:String,//个性宣言
    friends:[{fid:Object,
        remarks:String,
        group:String,
        allow:Boolean}]

});
mongoose.model("users",users);